package com.project.bean;

import java.time.LocalDate;
import java.util.Arrays;

public class UserBean {
    private int id;
    private String name;
    private String tel;
    private int money;
    private LocalDate birthday;
    private String[] like;

    public UserBean() {
    }

    public UserBean(String name, String tel, int money, LocalDate birthday, String[] like) {
        this.name = name;
        this.tel = tel;
        this.money = money;
        this.birthday = birthday;
        this.like = like;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String[] getLike() {
        return like;
    }

    public void setLike(String[] like) {
        this.like = like;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", money=" + money +
                ", birthday=" + birthday +
                ", like=" + Arrays.toString(like) +
                '}';
    }
}
